package com.qt.myio;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @Author zsf
 * @Date 2023/9/21 23:53
 * @Version 1.0
 */
public class MyIoDemo01 {

    public static void main(String[] args) throws IOException {

        FileOutputStream fileOutputStream = new FileOutputStream("aaa\\a.txt",true);


        /**
         * 1.写 换行
         * 2.续写(true)
         */

        //换行
        byte[] bytes = "大帅比".getBytes();
        fileOutputStream.write(bytes);

        byte[] str = "\r\n".getBytes();
        fileOutputStream.write(str);

        byte[] bytes2 = "shiwo".getBytes();
        fileOutputStream.write(bytes2);

        fileOutputStream.close();



    }

}
